package com.jack006.files.service;

import org.springframework.web.multipart.MultipartFile;

/**
 * @Classname UploaderService
 * @Description 文件上传接口
 * @Date 2021-06-17 22:15
 * @Created by jack
 */
public interface UploaderService {


    /**
     * 使用fdfs 上传文件
     * @param file
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadFdfs(MultipartFile file, String fileExtName) throws Exception;

    /**
     * 使用 OSS 上传文件
     * @param file
     * @param userId
     * @param fileExtName
     * @return
     * @throws Exception
     */
    String uploadOSS(MultipartFile file,  String userId, String fileExtName) throws Exception;

}
